const path = require("path");
const { merge } = require("webpack-merge");
const common = require("./webpack.common.js");

module.exports = merge(common, {
  entry: path.resolve(__dirname, "./src/entry-server.tsx"),
  output: {
    library: {
      type: "commonjs-static",
    },
    path: path.resolve(__dirname, "render"),
    filename: "render.js",
    clean: true,
  },
  target: "node",
});
